package com.backgammon;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;

public class main extends Activity {
	private Button ConfirmBut;
	private TextView txtview;
	
	
	
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        //测试eclipse会不会检测到更新
        //答案是-----会的
        //刚刚出现了错误（感叹号），解决办法是，clean up
		//example
        this.ConfirmBut = (Button)findViewById(R.id.Confirmbut);
        this.txtview = (TextView)findViewById(R.id.txtview);
        this.ConfirmBut.setOnClickListener(
        		new OnClickListener(){

					@Override
					public void onClick(View arg0) {
						// TODO Auto-generated method stub
						txtview.setText("您刚刚点击了确定按钮！");
					}
        			
        		});
        
    }
    
}